package com.zhongan.user.service.impl;

import com.zhongan.common.annotations.ApiMethod;
import com.zhongan.common.annotations.ApiParam;
import com.zhongan.common.annotations.ApiService;
import com.zhongan.common.dto.ResultBase;
import com.zhongan.user.api.dto.UserDto;
import com.zhongan.user.service.DemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 用户服务接口实现
 *
 * @author za-shaojian
 */
@Service
@ApiService(serviceSystemCode = "demo", serviceSystemDescription = "用户体系服务")
public class DemoServiceImpl implements DemoService {
    private final Logger logger = LoggerFactory.getLogger(getClass());

    @ApiMethod(value = "findByUsername", descript = "根据用户名查询用户信息", serviceResult = "UserDto", apiParams = {@ApiParam(name = "userName", isNull = false, descript = "用户名", paramType = "String"),
    })
    public ResultBase<UserDto> findByUsername(String userName) {
        return new ResultBase<UserDto>();
    }

    @ApiMethod(value = "add", descript = "两个数相加", serviceResult = "Integer", apiParams = {@ApiParam(name = "a", isNull = false, descript = "加数a", paramType = "Integer"),
            @ApiParam(name = "b", isNull = false, descript = "加数b", paramType = "Integer")})
    public ResultBase<Integer> addDemo(Integer a, Integer b) {
        return null;
    }
}
